#!/bin/bash
# Zaitan Module - PHP-GTK2 Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE=1.0
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Developed'
RMOD_NAME='PHP-GTK2'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION=2
RMOD_DESCRIPTION='Installs PHP-GTK2'
RMOD_RUN_IN_CHROOT=True
RMOD_DEB=php-gtk2.tar.gz
RMOD_UPDATE_URL='http://ufpr.dl.sourceforge.net/sourceforge/agata/'

# Install PHP-GTK2


echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall


	cd /usr/local
	wget -c $RMOD_UPDATE_URL$RMOD_DEB
	tar -xzvf $RMOD_DEB
	chmod 777 php-gtk2 -Rf
	ln -sf /usr/local/php-gtk2/bin/php /usr/bin/php-gtk2
	ln -sf /usr/local/php-gtk2/bin/php /usr/local/bin/php-gtk2
	export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/php-gtk2/lib


sleep 2
echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/bashare/modules/mod-logs
##

exit 0

